{literal}
<script type="text/javascript">
<!--
function confirmDelete(articleId) {
if (confirm("This will delete the comment. Continue?"))
document.location = "admin.php?page=comments&action=delete&id=" + articleId;
}

function confirmPublish(articleId)
{
    if (confirm("This will publish the comment. Continue?")){/literal}
    document.location = "{$pagename}&action=publish&id=" + articleId;{literal}
}

function confirmunPublish(articleId)
{
    if (confirm("This will unpublish the comment. Continue?")){/literal}
    document.location = "{$pagename}&action=unpublish&id=" + articleId;{literal}
}

//-->
</script>
{/literal}
{if $number > 0}
<h2>Article Comments</h2>
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" class="table">
  <tr>
    <th class="smallhead">Action</th>
    <th class="smallhead">Published</th>
    <th class="smallhead">User</th>
    <th class="smallhead">Date Posted</th>
	<th class="smallhead">Comment</th>
  </tr>
{section  name=noteloop loop=$number}
  <tr>
    <td class="text"><a href="javascript:confirmDelete({$comments[noteloop].id})"><img src="{$tempdir}admin/images/delete.gif" border="0" alt="Delete {$comments[noteloop].comment}" title="Delete {$comments[noteloop].comment}" /></a></td>
    <td class="text">{if $comments[noteloop].allowed == 0}<a href="javascript:confirmPublish({$comments[noteloop].id})"><img src="{$tempdir}admin/images/publish.png" border="0" alt="Publish {$comments[noteloop].comment}" title="Publish {$comments[noteloop].comment}" /></a>{else}<a href="javascript:confirmunPublish({$comments[noteloop].id})"><img src="{$tempdir}admin/images/unpublish.png" border="0" alt="Unpublish {$comments[noteloop].comment}" title="Unpublish {$comments[noteloop].comment}" /></a>{/if}</td>
    <td class="text">{$comments[noteloop].uname}</td>
    <td class="text">{$comments[noteloop].date+$timeoffset|date_format:"%B %e, %Y %H:%M"}</td>
	<td class="text">{$comments[noteloop].comment}</td>
  </tr>
{/section}
</table>
{else}
<div align="center">No Comments</div>
{/if}
<div align="center">
 <a href="http://www.cmscout.za.net/index.php?page=subsite&amp;site=Manual&amp;content=adminpanel-comments" target="_blank">Help</a>
</div>